home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 June
/
PCWorld_2004-06_cd.bin
/
software
/
vyzkuste
/
koolmoves
/
kmsetup.exe
/
{app}
/
Motion Scripts
/
Vanish
/
effect2.txt
Wrap
Text File
|
2004-03-06
|
724b
|
35 lines
// main_init function
main_init = function(mc){
}
// main_effect function
main_effect = function(mc,frame){
if (subs_done) end_effect = true;
}
// sub_init function
sub_init = function(mc){
if (!out_effect) mc._xscale = mc._yscale = 0;
}
// sub_effect function
sub_effect = function(mc,frame){
perc = frame / lastsubframe;
if (out_effect) perc = 1 - perc;
if (switch_xy_order){
mc._yscale = Math.max(0,200 * perc - 100);
mc._xscale = Math.min(100,200 * perc);
if (!mc._yscale) mc._height = 2;
}else{
mc._xscale = Math.max(0,200 * perc - 100);
mc._yscale = Math.min(100,200 * perc);
if (!mc._xscale) mc._width = 2;
}
if (frame == lastsubframe) mc.done=true;
}